#include "configs.h"

uint8_t led_c=0;
nuc_data_t nuc_data;

float Inferior_arc_treatment(float ref,float set,float max)
{
    if(ref-set>max/2){
        return ref-max;
    }
    else if(ref-set<-max/2)
    {
        return ref+max;
    }
    else{
        return ref;
    }
}
